package com.rebo.dao.impl;

import org.springframework.stereotype.Repository;

import com.rebo.dao.MemberDao;
import com.rebo.model.Member;

@Repository
public class MemberDaoImpl extends BaseDaoImpl<Member,String> implements MemberDao{

	public Member getMemberByUsername(String username) {
		String hql = "from Member members where lower(members.userName) = lower(?)";
		return (Member) getSession().createQuery(hql).setParameter(0, username).uniqueResult();
	}
	
}
